/*
 * MIT License
 *
 * Copyright (c) 2023 tuxming@sina.com / wechat: angft1
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 *//*
 * MIT License
 *
 * Copyright (c) 2023 tuxming@sina.com / wechat: angft1
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */package com.xm2013.admin.domain.base;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;
import com.xm2013.admin.jfinal.generator.Col;

/**
 * Generated by JFinal, do not modify this file.
 */
@SuppressWarnings({"serial", "unchecked"})
public abstract class BaseUserData<M extends BaseUserData<M>> extends Model<M> implements IBean {

	public static String COL_ID = "id";
	/**
	 * 用户id
	 */
	public static String COL_USER_ID = "user_id";
	/**
	 * 引用id: type=1, 为用户id, 2-为组织id
	 */
	public static String COL_REF_ID = "ref_id";
	/**
	 * 数据权限类型： 1-具体的用户id, 2-组织节点的id
	 */
	public static String COL_TYPE = "type";

	public M setId(java.lang.Integer id) {
		set("id", id);
		return (M)this;
	}
	
	@Col(tableName = "sys_user_data", tableLabel="数据权限	", 
		fieldName = "id", colName = "id", 
		label = "")
	public java.lang.Integer getId() {
		return getInt("id");
	}

	/**
	 * 用户id
	 */
	public M setUserId(java.lang.Integer userId) {
		set("user_id", userId);
		return (M)this;
	}
	
	/**
	 * 用户id
	 */
	@Col(tableName = "sys_user_data", tableLabel="数据权限	", 
		fieldName = "userId", colName = "user_id", 
		label = "用户id")
	public java.lang.Integer getUserId() {
		return getInt("user_id");
	}

	/**
	 * 引用id: type=1, 为用户id, 2-为组织id
	 */
	public M setRefId(java.lang.Integer refId) {
		set("ref_id", refId);
		return (M)this;
	}
	
	/**
	 * 引用id: type=1, 为用户id, 2-为组织id
	 */
	@Col(tableName = "sys_user_data", tableLabel="数据权限	", 
		fieldName = "refId", colName = "ref_id", 
		label = "引用id: type=1, 为用户id, 2-为组织id")
	public java.lang.Integer getRefId() {
		return getInt("ref_id");
	}

	/**
	 * 数据权限类型： 1-具体的用户id, 2-组织节点的id
	 */
	public M setType(java.lang.Integer type) {
		set("type", type);
		return (M)this;
	}
	
	/**
	 * 数据权限类型： 1-具体的用户id, 2-组织节点的id
	 */
	@Col(tableName = "sys_user_data", tableLabel="数据权限	", 
		fieldName = "type", colName = "type", 
		label = "数据权限类型： 1-具体的用户id, 2-组织节点的id")
	public java.lang.Integer getType() {
		return getInt("type");
	}

}

